package com.tongji.travelplan.unitstub;

import java.util.ArrayList;
import java.util.Iterator;

import com.tongji.travelplan.beans.KindBean;
import com.tongji.travelplan.dao.KindDao;

public class testkind {
	public static void main(String[] args)
	{	
		//getallkind
		ArrayList<KindBean> aList = new ArrayList<KindBean>();
		KindBean kindBean = new KindBean();
		KindDao kindDao = new KindDao();
		aList = kindDao.getAllKind();
		Iterator<KindBean> iterator = aList.iterator();
		while(iterator.hasNext())
		{
			kindBean = iterator.next();
			System.out.println("id:" + kindBean.getId() + "name:" + kindBean.getName() + "attribute" + kindBean.getAttribute());
		}
	}
}
